import axios from '../AxiosConfig.js'

export const createDictItem = data => {
  return axios({
    method: 'post',
    url: '/api/dict/item',
    data: data
  })
}

export const deleteDictItem = ukId => {
  return axios({
    method: 'delete',
    url: '/api/dict/item',
    params: {"ukId": ukId}
  })
}

export const updateDictItem = data => {
  return axios({
    method: 'put',
    url: '/api/dict/item',
    data: data
  })
}

export const listDictItem = (dictUkId) => {
  return axios({
    method: 'get',
    url: '/api/dict/item/list',
    params: {"dictUkId": dictUkId}
  })
}


